package com.ts.api.module.api.convert.platform.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 *  默认平台撞库返回
 *
 *  @author Pan
 */
@Data
public class RespPlatformPhoneMaskApply {

    /** 进件返回url */
    private String callUrl;
    /** 是否业务判断成功 */
    @JSONField(serialize = false)
    private Boolean hasBizSuc = false;

    /**
     *  构建失败
     *
     *  @return RespPlatFormPhoneMaskApply
     */
    public static RespPlatformPhoneMaskApply ofFail() {
        RespPlatformPhoneMaskApply resp = new RespPlatformPhoneMaskApply();
        resp.setHasBizSuc(false);
        return resp;
    }

    /**
     *  构建成功
     *
     *  @return RespPlatFormPhoneMaskApply
     */
    public static RespPlatformPhoneMaskApply ofSuc() {
        RespPlatformPhoneMaskApply resp = new RespPlatformPhoneMaskApply();
        resp.setHasBizSuc(true);
        return resp;
    }
}
